package CodeBlock;
/**
 * 
* @ClassName: CodeBlock
* @Description: TODO(代码块，静态代码块
	static A CodeBlock
	static B CodeBlock
	A CodeBlock
	B CodeBlock
* )
* @author hsj
* @email 2356899074@qq.com
* @date 2019年5月31日
*
 */
public class CodeBlock {
	public static void main(String[] args) {
		new HelloB();
	}
}

class HelloB extends HelloA {
	public HelloB() {
	}

	{
		System.out.println("B CodeBlock");
	}
	static {
		System.out.println("static B CodeBlock");
	}
}

class HelloA {
	public HelloA() {
	}

	{
		System.out.println("A CodeBlock");
	}
	static {
		System.out.println("static A CodeBlock");
	}
}